package com.wechet.domain;

import com.wechet.common.OrderStatus;
import com.wechet.common.PayStatus;
import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by sc on 2017/9/21.
 */

@Entity
@Data
@DynamicUpdate
public class OrderMaster {
    @Id
    private String orderId;
    private String buyerName;
    private String buyerPhone;
    private String buyerAddress;
    private String buyerOpenid;
    private BigDecimal orderAmount;
    private Integer orderStatus = OrderStatus.NEW.getCode();
    private Integer payStatus = PayStatus.NOTPAY.getCode();
    private Date createTime;
    private Date updateTime;
}
